import { createSlice } from "@reduxjs/toolkit";

export const DataSlice = createSlice({
  name: "DataSlice",
  initialState: {
    data: {},
  },
  reducers: {
    setDataStrote(state, { payload }) {
        state.data = payload.data
    },
  },
});

// Action creators are generated for each case reducer function
export const {setDataStrote} = DataSlice.actions;

export default DataSlice.reducer;
